Skip to content

)}

BaseReplayLatestSubjectAsync(Optional) constructor

Defined in

Type: BaseReplayLatestSubjectAsync Namespace: ReactiveUI.Extensions.Async.Subjects Assembly: ReactiveUI.Extensions.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

protected BaseReplayLatestSubjectAsync(Optional<T> startValue)

View source

Summary: Provides a base implementation for an asynchronous subject that replays the latest value to new subscribers and supports asynchronous notification of observers.

Parameters

NameTypeDescription
startValue[Optional](#An optional initial value to be emitted to new subscribers before any other values are published.

Remarks

This abstract class is intended to be inherited by types that implement custom replay and notification logic for asynchronous observers. When a new observer subscribes, it immediately receives the latest value if one is available. The subject supports asynchronous notification of values, errors, and completion, and ensures thread-safe access for concurrent operations.